package org.hyl.javabase.schoolmodel;


import java.util.Calendar;

public class student {
  String name;
  int id;
  score[][][] ss=new score[6][2][3]; //3*2*6
  int scoi=5; //0,1,2,3,4,5
  
  int scok=0;
  public student(){}
  public student(String name){
	  this.name=name;
  }

  public void addScore(String course,float sc,int xq){
	  score s=new score();	  
	  s.z_course=course;
	  s.score=sc;
	  s.xq=xq;
	  s.cdate=getDate();
	  scok= (course.equals("yw"))?0:(course.equals("sx"))?1:2;//
	  ss[scoi][xq][scok]=s;
	
  }
  
  public int  getDate(){  	
		Calendar now = Calendar.getInstance();  
		return  now.get(Calendar.YEAR) *10000
				+(now.get(Calendar.MONTH)+1) *100
				+now.get(Calendar.DAY_OF_MONTH);
	}
}
